COMCreateObject<T> Method

Summary

Creates a COM object by progid.

Syntax
C#
VB
C++
public static T COMCreateObject<T>( 
   string sProgID 
) 
Public Shared Function COMCreateObject(Of T)( _ 
   ByVal sProgID As String _ 
) As T 
public: 
static _T^_ COMCreateObjectgeneric<typename T> 
(  
   String^ sProgID 
)  

Parameters

sProgID
The COM object progid.

Type Parameters

T
Interface to the COM object to create.

Return Value

The interface to the COM object.

Example

For an example refer to InitializeBinding.

Requirements

Target Platforms

See Also

Reference

Utils Class

Utils Members

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Ccow Assembly